<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<%@ taglib prefix="sitemesh" uri="http://www.opensymphony.com/sitemesh/decorator" %>
<!DOCTYPE html>
<html style="overflow-x:auto;overflow-y:auto;">
<head>
	<title><sitemesh:title/></title>
	<script>
        var memoryColors = [
            {r: 100, g: 200, b: 10,  a: 0.6},
            {r: 80,  g: 100, b: 50,  a: 0.9},
            {r: 70,  g: 80,  b: 10,  a: 0.9},
            {r: 20,  g: 200, b: 60,  a: 0.9},
            {r: 88,  g: 0,   b: 30,  a: 0.4},
            {r: 100, g: 0,   b: 100, a: 0.6},
            {r: 200, g: 0,   b: 0},
            {r: 200, g: 30,  b: 100}
        ];

        function setBackgroundColor(initColor) {
            try {
                if (initColor.length < 8) {
                    return initColor;
                }
                if (initColor.indexOf("rgba") >= 0) {
                    return initColor;
                }
                if (initColor.length > 6) {
                    initColor = initColor.replace("#", "");
                    var r = parseInt(initColor.substr(2, 2), 16);
                    var g = parseInt(initColor.substr(4, 2), 16);
                    var b = parseInt(initColor.substr(6, 2), 16);
                    var a = parseInt(initColor.substr(0, 2), 16) / 255;
                    return "rgba(" + r + "," + g + "," + b + "," + a + ")";
                } else {
                    return "";
                }
            } catch (e) {
                return "";
            }
        }

        function setInputColor(ele, colors) {
            var alpha = colors.alpha;
            var HEX = colors.HEX;
            if (alpha > 0) {
                ele.val("#" + parseInt((alpha * 255)).toString(16).toUpperCase() + HEX);
            } else {
                ele.val("#00" + HEX);
            }
        }
	</script>
	<%@include file="/WEB-INF/views/include/head.jsp" %>
	<sitemesh:head/>
</head>
<body>
	<sitemesh:body/>
	<%--<script type="text/javascript">//<!-- 无框架时，左上角显示菜单图标按钮。--%>
		<%--if(!(self.frameElement && self.frameElement.tagName=="IFRAME")){--%>
			<%--$("body").prepend("<i id=\"btnMenu\" class=\"icon-th-list\" style=\"cursor:pointer;float:right;margin:10px;\"></i><div id=\"menuContent\"></div>");--%>
			<%--$("#btnMenu").click(function(){--%>
				<%--top.$.jBox('get:${ctx}/sys/menu/treeselect;JSESSIONID=<shiro:principal property="sessionid"/>', {title:'选择菜单', buttons:{'关闭':true}, width:300, height: 350, top:10});--%>
				<%--//if ($("#menuContent").html()==""){$.get("${ctx}/sys/menu/treeselect", function(data){$("#menuContent").html(data);});}else{$("#menuContent").toggle(100);}--%>
			<%--});--%>
		<%--}//-->--%>
	<%--</script>--%>
</body>
</html>